package com.haikesi.api.loginlog.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haikesi.api.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "login_log")
@Data
@EqualsAndHashCode(callSuper = false)
public class LoginLogVO extends BaseEntity {

    @ApiModelProperty(value = "编号", hidden = false)
    private String id;

    @ApiModelProperty(value = "登陆IP", hidden = false)
    private String logIp;

    @ApiModelProperty(value = "操作人", hidden = false)
    private String loginName;

    @ApiModelProperty(value = "登录地区", hidden = false)
    private String loginRegion;


    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
}